﻿using System.ComponentModel.DataAnnotations;

namespace Model.DTO.Ware
{
    /// <summary>
    /// 添加商品类型DTO
    /// </summary>
    public class EditWareTypeDTO
    {
        /// <summary>
        /// 商品类型名称(16)
        /// </summary>
        [Required(ErrorMessage = "商品类型名称不能为空"),MaxLength(16)]
        public string WareName { get; set; }
        /// <summary>
        /// 商品类型代码(16)
        /// </summary>
        [Required(ErrorMessage = "商品类型代码不能为空"),MaxLength(16)]
        public string WareCode { get; set; }
        /// <summary>
        /// 商品类型Id
        /// </summary>
        [Required(ErrorMessage = "商品类型Id不能为空")]
        public int Id { get; set; }
        /// <summary>
        /// 备注(128)
        /// </summary>
        [MaxLength(128)]
        public string? Remark { get; set; }
        /// <summary>
        /// 描述(128)
        /// </summary>
        [MaxLength(128)]
        public string? Description { get; set; }
    }
}
